﻿@model LayuiDemo.demo.ViewModels.FooVMs.FooListVM
@inject IStringLocalizer<Program> Localizer;

<wt:searchpanel vm="@Model" reset-btn="true">
    <wt:row items-per-row="ItemsPerRowEnum.Three">
        <wt:textbox field="Searcher.Age" />
        <wt:combobox field="Searcher.DepartType" empty-text="@Localizer["Sys.All"]" />
        <wt:combobox field="Searcher.IsValid" empty-text="@Localizer["Sys.All"]" />
        <wt:textbox field="Searcher.Name" />
        <wt:textbox field="Searcher.Remark" />
    </wt:row>
</wt:searchpanel>
<wt:grid vm="@Model" url="/demo/Foo/Search" done-func="done"/>


<script>
    layui.use('soulTable');
    function done(res, curr, count) {
        let that = eval('wtTable_@Model.UniqueId' + 'filterback');
        that.overflow = { type: 'tips', hoverTime: 500, color: 'black', bgColor: 'white'};
        that.drag = { toolbar: true };
        layui.soulTable.render(that);
    }
</script>